<@master template="master/master-loan" title="${loanApplyFileEntity.titleName}贷款">
<div class="detailsBox">
	<form class="action-ajax-form" action="/rcloan/saveEAloanapply" method="post">
		<div class="openBox">
			<h3>
				<a class="action-ajax-btn fr edit btn_blue"
					data-url="<@url value='/customer/edit_basic?customer_id=${basic.customerId}' domain='o2o.admin.crm'/>">编辑个人信息</a>
				<i class="jtIco"></i>个人信息
			</h3>
			<input type="hidden" name="billCode" value="${loanApplyFileEntity.billCode}">
			<input type="hidden" name="codeType" value="${loanApplyFileEntity.codeType}">
			<div class="detaiTab">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tbody>
						<tr>
							<td align="right" class="bg" width="15%">借款人姓名:</td>
							<td width="35%">${basic.customerName}</td>
							<td align="right" class="bg" width="15%">借款人拼音:</td>
							<td>${basic.customerNamePinyin}</td>
						</tr>
						<tr>
							<td align="right" class="bg">性别:</td>
							<td><@select dataSouceType="SEX" value="${basic.sex}"
								renderonly="true"/> <input type="hidden" value="${basic.sex}"
								name="sex" renderonly="true">
							</td>
							<td align="right" class="bg">年龄:</td>
							<td>${basic.age}</td>
						</tr>
						<tr>
							<td align="right" class="bg">证件类型:</td>
							<td><@select dataSouceType="OTOIDCARDTYPE"
								value="${basic.idType}" renderonly="true"/> <input type="hidden"
								value="${basic.idType}" name="documentType">
							</td>
							<td align="right" class="bg">证件号码:</td>
							<td>${basic.idNumber}</td>
						</tr>
						<tr>
							<td align="right" class="bg">发证机关:</td>
							<td>${expan.issuingAuthority}</td>
							<td align="right" class="bg">证件到期日:</td>
							<td><#if (expan.licenseExpirationDate)??>
								${expan.licenseExpirationDate?date} </#if></td>
						</tr>
						<tr>
							<td align="right" class="bg">婚姻状况</td>
							<td><@select dataSouceType="CRMFAMILYSTATUS"
								value="${basic.maritalStatus}" renderonly="true"/></td>
							<td align="right" class="bg">学历:</td>
							<td><@select dataSouceType="QUALIFICATIONS"
								value="${expan.education}" renderonly="true"/></td>
						</tr>
						<tr>
							<td align="right" class="bg">联系电话:</td>
							<td>${basic.mobileNumber}<input type="hidden"
								value="${basic.mobileNumber}" name="userPhone"></td>
							<td align="right" class="bg">住宅电话:</td>
							<td>${expan.homePhone}</td>
						</tr>
						<tr>
							<td align="right" class="bg">客户类型:</td>
							<td colspan="3"><@select dataSouceType="OTO_CUSTOMER_TYPE"
								value="${basic.customerType}" renderonly="true"/></td>
						</tr>
						<tr>
							<td align="right" class="bg">客户名称:</td>
							<td colspan="3">${basic.customerSdName}</td>
						</tr>
						<tr>
							<td align="right" class="bg">收件地址:</td>
							<td colspan="3">${expan.recipientAddress}</td>
						</tr>
						<tr>
							<td align="right" class="bg">户口所在地:</td>
							<td colspan="3">${expan.permanentResidence}</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		<div class="openBox">
			<#if (materBasic.customerId)??>
			<h3 class="mt20">
				<i class="jtIco1"></i>配偶信息
			</h3>
			<div class="detaiTab" style="display: none;">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tbody>
						<tr>
							<td align="right" class="bg" width="15%">配偶姓名:</td>
							<td width="35%">${materBasic.customerName}
							<td align="right" class="bg" width="15%">年龄:</td>
							<td>${materBasic.age}</td>
						</tr>
						<tr>
							<td align="right" class="bg">职业:</td>
							<td>${materExpan.occupation}</td>
							<td align="right" class="bg">户口所在地:</td>
							<td>${materExpan.permanentResidence}</td>
						</tr>
						<tr>
							<td align="right" class="bg">证件类型:</td>
							<td><@select dataSouceType="OTOIDCARDTYPE"
								value="${materBasic.idType}" renderonly="true"/>
							<td align="right" class="bg">证件号码:</td>
							<td>${materBasic.idNumber}</td>
						</tr>
						<tr>
							<td align="right" class="bg">学历:</td>
							<td>
							<@select dataSouceType="QUALIFICATIONS"
									value="${materExpan.education}" renderonly="true"/>
							</td>
							<td align="right" class="bg">现住址:</td>
							<td>${materExpan.recipientAddress}</td>
						</tr>
						<tr>
							<td align="right" class="bg">联系电话:</td>
							<td>${materBasic.mobileNumber}</td>
							<td align="right" class="bg">住宅电话:</td>
							<td>${materExpan.homePhone}</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>

		</#if>
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>贷款基本资料
			</h3>
			<div class="detaiTab">
				<table cellspacing="0" cellpadding="0" border="0">
					<tbody>
						<#if loanApplyFileEntity.continueLoanParenNo!="">
						<tr>
							<td width="15%" align="right" class="bg">上一笔贷款单号：</td>
							<td width="35%">${loanApplyFileEntity.continueLoanParenNo}</td>
							<#if loanApplyFileEntity.loanType=="BK">
							<td width="15%" align="right" class="bg">是否为续贷：</td>
							<td>是</td> </#if>
						</tr>
						</#if>
						<tr>
							<td width="15%" align="right" class="bg">贷款类型：</td>
							<td width="35%"><@select dataSouceType="OTO_LOAN_TYPE_SB"
								value="${loanApplyFileEntity.loanType}" renderonly="true"/> <input
								type="hidden" name="loanType" id="loanType"
								value="${loanApplyFileEntity.loanType}" />
							</td>
							<td width="15%" align="right" class="bg">信贷经理：</td>
							<td><@autocomplete url="/loanrest/likeOperator?name="
								name="operatorName"
								onclick="_onchange_hidden_input('operatorNo');"
								value="${loanApplyFileEntity.operatorName}"
								hideIdName="operatorNo"
								hideIdValue="${loanApplyFileEntity.operatorNo}"/>(联想)<span
								style="color: red;">*</span><span id="operatorNoErorr"
								style="color: red;"></span>
							</td>
						</tr>
						<tr>
							<td width="15%" align="right" class="bg">申请金额(元)：</td>
							<td><input type="text" name="loanaMount" id="loanaMount"
								onchange="checkInput('loanaMount')"
								class="tabInp inputNum action-valid-field"
								value="${loanApplyFileEntity.loanaMount}"> <span
								style="color: red;">*</span><span id="loanaMountErorr"
								style="color: red;"></span></td>

							<td width="15%" align="right" class="bg">经办平台：</td>
							<td><@autocomplete url="/loanrest/search?name="
								name="ltdName" onclick="_onchange_hidden_input('ltd');"
								value="${loanApplyFileEntity.ltdCode}-${loanApplyFileEntity.ltdName}" hideIdName="ltd"
								hideIdValue="${loanApplyFileEntity.ltd}"/>(联想)<span
								style="color: red;">*</span><span id="ltdErorr"
								style="color: red;"></span>
							</td>
							
						</tr>
						<tr>
							<td width="15%" align="right" class="bg">申请期限：</td>
							<td><@select dataSouceType="OTOLOANTERM" name="loanTerm"
								onchange="chechkSelect('loanTerm');"
								value="${loanApplyFileEntity.loanTerm}" id="loanTerm"
								class="tabInp action-valid-field"/> <span style="color: red;">*</span><span
								id="loanTerm_ERROR" style="color: red;"></span>
							</td>
							<td width="15%" align="right" class="bg">推荐人：</td>
							<td><@autocomplete url="/loanrest/referrer?name="
								name="referrerName"
								onclick="_onchange_hidden_input('referrerNo');"
								value="${loanApplyFileEntity.referrerName}"
								hideIdName="referrerNo"
								hideIdValue="${loanApplyFileEntity.referrerNo}"/>(联想)<span
								style="color: red;">*</span> <span style="color: #999999">推荐人仅限内部员工，如无推荐人填写自己名字。</span>
								<span id="referrerNoErorr" style="color: red;"></span>
							</td>
						</tr>
						<tr>
							<td width="15%" align="right" class="bg">担保方式：</td>
							<td><@select dataSouceType="OTOGUARANTEEWAY"
								name="guarAnteeWay" onchange="chechkSelect('guarAnteeWay');"
								id="guarAnteeWay" value="${loanApplyFileEntity.guarAnteeWay}"
								class="tabInp action-valid-field" /> <span style="color: red;">*</span><span
								id="guarAnteeWay_ERROR" style="color: red;"></span>
							</td>
							<td width="15%" align="right" class="bg">还款方式：</td>
							<td><@select dataSouceType="OTOREPAYMENTWAY"
								name="repayMentway" onchange="chechkSelect('repayMentway');"
								id="repayMentway" value="${loanApplyFileEntity.repayMentway}"
								class="tabInp action-valid-field" /> <span style="color: red;">*</span><span
								id="repayMentway_ERROR" style="color: red;"></span>
							</td>
						</tr>
						<tr>
						<!--
						<td width="15%" align="right" class="bg" title="如果该笔贷款由合资公司提供担保，则选择相对应的经办平台作为回购担保方，如果该笔贷款合资公司不提供担保，则选择O2O金融中心作为回购担保方">回购担保方<span class=" wenhaoIco"></span>:</td>
								<td><@autocomplete url="/loanrest/findUnits?name="
									name="buybackName" onclick="_onchange_hidden_input('buybackId');"
									value="${loanApplyFileEntity.buybackName}" hideIdName="buybackId"
									hideIdValue="${loanApplyFileEntity.buybackId}"/>(联想)
									<span style="color: red;">*</span>
							</td>
							-->
							<td width="15%" align="right" class="bg"  title="1、自营模式：贷款由380金服平台自行获客，并由380金服平台对合作银行提供回购担保； 2、共享模式：贷款由各经办机构推荐获客，并由经办机构对合作银行提供回购担保； 3、推荐模式：贷款由各经办机构推荐获客，由380金服平台对合作银行提供回购担保，续贷不计入佣金模式，计入自营模式。">经营模式<span class=" wenhaoIco"></span>:</td>
								<td colspan="3" ><@select dataSouceType="OPERATION_MODEL"
									name="operationModel" onchange="chechkSelect('operationModel');"
									id="operationModel" value="${loanApplyFileEntity.operationModel}"
									class="tabInp action-valid-field" /> <span
									id="operationModel_ERROR" style="color: red;"></span>
							</td>
							</tr>
						<tr>
							<td align="right" class="bg">备注：</td>
							<td colspan="3"><textarea rows="4" name="remark" cols="80"
									style="resize: none;"
									onpropertychange="if(value.length>2000) value=value.substr(0,200)">${loanApplyFileEntity.remark}</textarea>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		<div class=" mtb20 tac">
			<input name="customerId" type="hidden" value="${basic.customerId}">
			<input type="submit" class="btn_auto_30 btn_blue" value="保 存">
			<a class="btn_auto_30 btn_blue ml20"
				href="javascript:history.back();">返回</a>&nbsp;
		</div>
	</form>
</div>
</@master>
